package TDADiccionario;

import TDAColaCP.Entry;
import TDAColaCP.InvalidKeyException;

public interface Dictionary<K, V> {
	
	public int size();
	
	public boolean isEmpty();
	
	public V find(K key) throws InvalidKeyException;
	
	public Iterable<V> findAll(K key) throws InvalidKeyException;
	
	public Entry<K,V> insert(K key, V value) throws InvalidKeyException;
	
	public Entry<K,V> remove(Entry<K,V> e) throws InvalidEntryException;
	
	public Iterable<Entry<K,V>> entries();
}
